package router

import (
	"github.com/gin-gonic/gin"
	"xiaohong-book-mgr/handler"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/login", handler.Login)
	r.POST("/articleAdd", handler.ArticleAdd)
	r.GET("/articleDetail", handler.ArticleDetail)
	r.GET("/articleDel", handler.ArticleDel)
	r.GET("/ArticleList", handler.ArticleList)
	return r
}
